package com.dubbo.springbootclient;/**
 * @author: Zhu.QF
 * @Date: 2020/3/26 10:50
 */

import com.alibaba.dubbo.config.annotation.Reference;
import com.test.ImemberService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: springbootclient
 *
 * @description:
 *
 * @author: Zhuqf
 *
 * @Date: 2020/3/26 10:50 
 */
@Controller
@RequestMapping(value = "/api")
public class Imember {
    @Reference
    private ImemberService imemberService;

    @GetMapping("/member")
    @ResponseBody
    public  String getOrder()
    {
        return  imemberService.getUser();
    }
}

